package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

/**
 * @author: liufh
 * @create: 2021-06-27 23:42
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    public SqlSession openSqlSession() {
        return new DefaultSqlSession(configuration);
    }

}
